package com.example.design.decorator.drinks;

import com.example.design.decorator.Beverage;

/**
 * 具体组件-饮料类-烘培咖啡
 */
public class DarkRoast extends Beverage {

    /**
     * 饮料的描述，description 实例变量继承自Beverage
     */
    public DarkRoast(){
        description = "Espresso Coffee";
    }

    /**
     * 返回该饮料的价格
     * @return
     */
    @Override
    public double cost() {
        return 1.77;
    }
}
